package peppa.george.base.mapper;

import peppa.george.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> findall();

    T findone(Long id);

    void save(T t);

    void update(T t);

    void remove(Long id);

    Integer count(BaseQuery query);

    List<T> pageQuery(BaseQuery query);

    void patchremove(List<Long> ids);
}
